'use strict';
const db = uniCloud.database()
exports.main = async (event, context) => {
	db.collection('list').where({
		_id: event._id
	}).remove().then(res => {
		if (res.deleted === 1) {
			return {
				status: 0,
				msg: '删除数据成功'
			}
		} else {
			return {
				status: -2,
				msg: '删除数据失败'
			}
		}
	})

};
